import request from '../utils/request'

// 教练管理相关API
export const coachApi = {
  // 获取教练列表
  getCoachList: (params?: any) => {
    return request.get('/coaches', { params })
  },

  // 获取教练详情
  getCoachDetail: (id: number) => {
    return request.get(`/coaches/${id}`)
  },

  // 创建教练
  createCoach: (data: any) => {
    return request.post('/coaches', data)
  },

  // 更新教练
  updateCoach: (id: number, data: any) => {
    return request.put(`/coaches/${id}`, data)
  },

  // 删除教练
  deleteCoach: (id: number) => {
    return request.delete(`/coaches/${id}`)
  }
}